import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {IndexComponent} from "./index/index.component";

const routes: Routes = [{
  path: '',
  component: IndexComponent
},{
  path:'demo',
  loadChildren: () => import('./ag-grid-demo/ag-grid-demo.module').then(v => v.AgGridDemoModule)
}];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
